home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
DINKDEMO
/
DC_TEXTE
/
DTEDITAP.C
next >
Wrap
Text File
|
1992-07-08
|
682b
|
44 lines
/*
File: DTEditApp.c
Written by: Mark Gross
Copyright: ⌐ 1992 by Applied Technical Software, all rights reserved.
Use at your own risk.
*/
//This is the class deffinition of the DScribbleApplication
#include "DTEditApp.h"
#include "DTEditDoc.h"
DDocument* DTEditApp::MakeDDoc(Boolean OpenFromFile)
{
DTEditDoc *New;
New = new DTEditDoc;
// if OpenFromFile == FALSE then it will
// not read from any file
if(New->Init(OpenFromFile))
{
if ( fTarget = New->MakeWindow(FALSE) )
((DWindow *) fTarget)->SetWindowTitle();
else
fTarget = New; // window not created
}
else
{
fTarget = this;
SelectWindow( FrontWindow());
}
return New;
}